#个人中心
from selenium.webdriver.common.by import By
from utils.pagebase import PageBase

class PageUser(PageBase):
    path_url = "/ucenter/index"
    h2DW=By.CSS_SELECTOR,'div.user_info > h2'
    def __init__(self,driver,base_url):
        PageBase.__init__(self,driver,base_url)

    # 打开网站
    def openurl(self):
        self.open(PageUser.path_url)
    #获取h2标签文本内容
    def geth2text(self):
        return self.getattr(PageUser.h2DW)
